<?php include "./layout/top.php" ?>
<!-- header end -->    <!-- main start -->
<div class="main clearfix">
<div class="aside">
    <?php include "./layout/playerdiv.php" ?>
    <div class="player-bottom">
    </div>
    <?php include "./layout/contactusdiv.php" ?>
    <div class="contact-bottom">
    </div>
</div>
<div class="submain">
<div class="pathbar">
    菲律宾太阳城娱乐直营网|<a href="/index.php" tppabs="/index.php">首页</a> - 提款申请
</div>
<div class="sub-wraper">
<div class="sub-wraper-inner">
<div class="sub-content">
<table border="0" width="49%">
    <tr>
        <td width="149">
            <p align="center">
                <a href="../zxcz.php">
                    <img src="./siteimages/cun-1.gif" tppabs="/siteimages/deposit/cun-1.gif"/></a>
        </td>
        <td>
            <p align="center">
                <img src="./siteimages/cun-2.gif" tppabs="/siteimages/pic/qu-1.gif" border="0"/>
        </td>
    </tr>
</table>
<p>
</p>

<div style='height: 403px; padding: 10px; width: 703px'>
<script type="text/javascript">

    function killerrors() {
        return true;
    }
    window.onerror = killerrors;
    var random = Math.random();
    function trim(str) {
        return str.replace(/(^\s*)|(\s*$)/g, "");
    }
    function checkaccount(user) {
        var result = false;
        $.ajax({url: "postcheckaccount.php?pi=" + random,
            async: false,
            type: "POST",
            data: {act: "pay", username: user},
            success: function (data) {
                if (data == "fail") {
                    //alert(data);
                    $.ligerDialog.warn('帐号不存在.');

                } else if (data == "success") {
                    result = true;
                }

            }});
        return result;
    }
    function Juge() {
        //var m=document.form1;
        var bank_address = $('#bank_address').val();
        var bank_num = $('#bank_num').val();//m.bank_num.value;
        var bank_username = $('#bank_username').val();//m.bank_name.value;
        var cart_city = $('#cart_city').val();
        var cart_area = $('#cart_area').val();
        var money = $('#money').val();//m.money.value;
        //var bank = $('[name=bank]').val();//m.bank.value;
        var bank = $("#bank").val();
        var drawpass = $('#ddlgpwd1').val() + $('#ddlgpwd2').val() + $('#ddlgpwd3').val() + $('#ddlgpwd4').val();
        var username = trim($("#username").val());

        if (username == "") {
            $.ligerDialog.warn('请填写帐户名称.');
            return false;
        }
        var username_confirm = $("#username_confirm").val();
        if (trim(username) != trim(username_confirm)) {
            $.ligerDialog.warn('请确认帐号是否一致.');
            return false;
        }

        if (cart_area == "") {
            $.ligerDialog.warn("請填寫銀行卡開戶地！");
            return false;
        }
        if (cart_city == "") {
            $.ligerDialog.warn("請填寫銀行卡開戶地！");
            return false;
        }
        if (bank_address == "") {
            $.ligerDialog.warn("請填寫開戶銀行地址！");
            //document.getElementById("bank_addressStr").innerHTML = "請填寫開戶銀行地址！";
            return false;
        }
        if (bank_num == "") {
            $.ligerDialog.warn("請填寫銀行帳號！");
            return false;
        }
        if (bank_username == "") {
            $.ligerDialog.warn("請填寫帳戶姓名！");
            return false;
        }
        if (bank == "") {
            $.ligerDialog.warn("請填寫銀行名！");
            return false;
        }
        if (money == "") {
            $.ligerDialog.warn("請填寫提款金額！");
            return false;
        }
        if (money < 1) {
            $.ligerDialog.warn("提款金額不能小於$100！");
            return false;
        }
        if (bank == "") {
            $.ligerDialog.warn("请选择提款银行！");
            return false;
        }
        if (!checkaccount(username)) {
            return false;
        }
        $.ligerDialog.waitting('正在提交信息中,请稍候...');
        $.post('posttakedata.php', {'act': 'take', 'username': username, 'drawpass': drawpass, 'bank_address': bank_address, 'bank_num': bank_num, 'bank_username': bank_username, 'bank_name': bank, 'money': money, 'cart_city': cart_city, 'cart_area': cart_area}, function (msg) {

            $.ligerDialog.closeWaitting();

            if (msg == 'success') {
                $.ligerDialog.success('提款成功，请等待财务出款', function () {
                    window.top.location.href = "/";
                });

            }
            else {
                $.ligerDialog.warn(msg);
            }
        });
        return false;
    }
    function kk(evt) {

        evt = (evt) ? evt : ((window.event) ? window.event : "") //兼容IE和Firefox获得keyBoardEvent对象
        var key = evt.keyCode ? evt.keyCode : evt.which; //兼容IE和Firefox获得keyBoardEvent对象的键值
        if (key == 8) return true;
        if (key == 13) return false;
        if ((key < 48 || key > 57) && (key > 95 || key < 106)) {
            alert("僅能輸入數字!!");
            return false;
        }
    }
</script>
<div class="divRightBox">

    <form id="form1" name="form1" method="post" action="" onSubmit="Javascript:return Juge();">
        <div class="divRightBody">

            <div class="divitemContent">
                <div id="aiContactSafe_info">请详细填写以下表格，带 *
                    项目为必填项目，提交成功后请在10分钟内暂停投注，我们会在10分钟内为您支付，有任何问题请联系我们的在线客服或QQ客服为您处理
                </div>

                <table width="100%" border="0" cellspacing="1" cellpadding="3">
                    <tr>
                        <td><span id="aiContactSafe_label_aics_username"><label
                                    for="label">游戏帐号</label></span><label>*</label></td>
                        <td><input type="text" name="username" id="username" value="" class="fmTxt">
                            <span id="aics_username_sufix">请输入您开户的帐号</span></td>
                    </tr>
                    <tr>
                        <td><span id="aiContactSafe_label_aics_username_confirm"><label
                                    for="label">确认帐号</label></span><label>*</label></td>
                        <td><input type="text" name="username_confirm" id="username_confirm" value="" class="fmTxt">
                            <span id="aics_username_sufix_confirm">请在确认帐号</span></td>
                    </tr>
                    <tr>
                        <td><span id="aiContactSafe_label_aics_amount"><label
                                    for="label">提款金额</label></span><label>*</label></td>
                        <td><input type="text" name="money" id="money" value="" class="fmTxt">
                            <span id="aics_amount_sufix">请输入您要取款的现金额度</span></td>
                    </tr>
                    <tr>
                        <td><span id="aiContactSafe_label_aics_bank"><label
                                    for="label">开户银行</label></span><label>*</label></td>
                        <td>
                            <select id="bank" name="bank" ac="" class="fmTxt">
                                <option value="农业银行">农业银行</option>
                                <option value="建设银行">建设银行</option>
                                <option value="工商银行">工商银行</option>
                                <option value="中国银行">中国银行</option>
                                <option value="招商银行">招商银行</option>
                                <option value="交通银行">交通银行</option>
                                <option value="民生银行">民生银行</option>
                                <option value="兴业银行">兴业银行</option>
                                <option value="中国银行">中国银行</option>


                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td><span id="aiContactSafe_label_aics_bank_account"><label
                                    for="label">银行账号</label></span><label>*</label></td>
                        <td><input type="text" name="bank_num" id="bank_num" value="" class="fmTxt">
                            <span id="aics_bank_account_sufix">(请注意：银行账号姓名必须跟游戏账号姓名保持一致)</span></td>
                    </tr>
                    <tr>
                        <td><span id="aiContactSafe_label_aics_bank_name"><label
                                    for="label">银行账号开户姓名</label></span><label>*</label></td>
                        <td><input type="text" name="bank_username" id="bank_username" value="" class="fmTxt"></td>
                    </tr>
                    <tr>
                        <td><span id="aiContactSafe_label_aics_address"><label
                                    for="label">开户地区</label></span><label>*</label></td>
                        <td><select name="cart_area" id="cart_area">
                                <option value="" selected>选择发卡省</option>
                                <option value="北京">北京</option>
                                <option value="上海">上海</option>
                                <option value="天津">天津</option>
                                <option value="重庆">重庆</option>
                                <option value="黑龙江">黑龙江</option>
                                <option value="吉林">吉林</option>
                                <option value="辽宁">辽宁</option>
                                <option value="内蒙古">内蒙古</option>
                                <option value="河北">河北</option>
                                <option value="新疆">新疆</option>
                                <option value="甘肃">甘肃</option>
                                <option value="青海">青海</option>
                                <option value="陕西">陕西</option>
                                <option value="宁夏">宁夏</option>
                                <option value="河南">河南</option>
                                <option value="山东">山东</option>
                                <option value="山西">山西</option>
                                <option value="安徽">安徽</option>
                                <option value="湖北">湖北</option>
                                <option value="湖南">湖南</option>
                                <option value="江苏">江苏</option>
                                <option value="四川">四川</option>
                                <option value="贵州">贵州</option>
                                <option value="云南">云南</option>
                                <option value="广西">广西</option>
                                <option value="西藏">西藏</option>
                                <option value="浙江">浙江</option>
                                <option value="江西">江西</option>
                                <option value="广东">广东</option>
                                <option value="福建">福建</option>
                                <option value="台湾">台湾</option>
                                <option value="海南">海南</option>
                                <option value="香港">香港</option>
                                <option value="澳门">澳门</option>
                            </select>
                            省
                            <input name="cart_city" type="text" class="input" id="cart_city" value=""
                                   style="width:68px">
                            市
                            <span id="aics_address_sufix">**省**市</span></td>
                    </tr>
                    <tr>
                        <td><span id="aiContactSafe_label_aics_address2"><label
                                    for="label">开户地址</label></span><label>*</label></td>
                        <td><input type="text" name="bank_address" id="bank_address" value=""/>
                        </td>
                    </tr>

                    <tr>
                        <td><span id="aiContactSafe_label_aics_password"><label
                                    for="label">取款口令</label></span><label>*</label></td>
                        <td><select name="select" id="ddlgpwd1">
                                <option value="0">0</option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="8">8</option>
                                <option value="9">9</option>
                            </select>
                            <select name="select" id="ddlgpwd2">
                                <option value="0">0</option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="8">8</option>
                                <option value="9">9</option>
                            </select>
                            <select name="select" id="ddlgpwd3">
                                <option value="0">0</option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="8">8</option>
                                <option value="9">9</option>
                            </select>
                            <select name="select" id="ddlgpwd4">
                                <option value="0">0</option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="8">8</option>
                                <option value="9">9</option>
                            </select></td>
                    </tr>
                </table>
            </div>

            <div id="aiContactSafeSend">
                <input name="submit" type="submit" id="submit" value="立即取款" class="btnSubmit">
            </div>


        </div>
    </form>
    <div class="divRightFoot"></div>
</div>
<div class="c"></div>
</div>
</div>
<p>
</p>
</div>
</div>
</div>
<span class="sub-bottom"></span>
</div>
</div>
<!-- main end -->
<?php include "./layout/bb.php" ?>
<!-- footer start -->
<?php include "./layout/footer.php" ?>